extend personLeft.pug

block append pageStyle
	link(href='${relativePath}/static/css/personCenter/mymsg.css' type="text/css" rel="stylesheet")

block personRight
	div.rightContent.fl
		div.myAttentionBox
			ul.myList
				
	script#inviteLlist(type="text/html")
		| {{each data arr}}
		li(class="{{(arr.is_read) =='2' ? 'bge' : ''}}")
			p {{arr.nice_name}} 邀请你加入 {{arr.company_name}}：
			a(href="{{arr.url}}") {{arr.url}}
		| {{/each}}

block append pageScript
	script.
		$(function(){
			$("#msg").addClass("current").siblings().removeClass("current");
			$.get(shopIp+"/company/invitation?os='web'&userToken="+token,function(data) {
				var inviteList = template("inviteLlist",data)
				$(".myList").append(inviteList)
			})
		})


